import request from '@/utils/request'

function getBanner(data) {
  return request({
    url:'/videos/index/banner',
    method:'get',
    params:data
  })
}

function getRecommend(data) {
  return request({
    url:'/videos/index/recommend',
    method:'get',
    params:data
  })
}

function getCategory(data) {
  return request({
    url:'/videos/index/category/'+data,
    method:'get'
  })
}

function getHot(data) {
  return request({
    url:'/videos/index/hot',
    method:'get'
  })
}

export default { getBanner, getCategory, getHot, getRecommend}